<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>table-表格 | Introduction</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../html/列表与表单.html" />
    
    
    <link rel="prev" href="../html/img.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.4"
        data-chapter-title="table-表格"
        data-filepath="html/biaoge.md"
        data-basepath=".."
        data-revision="Wed Apr 18 2018 23:41:29 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="html.html">
            
            <span><b>1.</b> HTML</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="html/html的基本结构和内容.html">
            
                
                    <a href="../html/html的基本结构和内容.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        HTML
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="html/a-标签.html">
            
                
                    <a href="../html/a-标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        a-标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="html/img.html">
            
                
                    <a href="../html/img.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        img-标签
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1.4" data-path="html/biaoge.html">
            
                
                    <a href="../html/biaoge.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        table-表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="html/列表与表单.html">
            
                
                    <a href="../html/列表与表单.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        列表与表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="html/音频和视频-标签.html">
            
                
                    <a href="../html/音频和视频-标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        音频与视频
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="html/iframe内嵌框架.html">
            
                
                    <a href="../html/iframe内嵌框架.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        iframe内嵌框架
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="CSS.html">
            
            <span><b>2.</b> CSS</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="css/CSS语法.html">
            
                
                    <a href="../css/CSS语法.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        CSS基本语法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="css/选择器.html">
            
                
                    <a href="../css/选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="css/伪类.html">
            
                
                    <a href="../css/伪类.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        伪类
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="css/盒子模型.html">
            
                
                    <a href="../css/盒子模型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="css/字体.html">
            
                
                    <a href="../css/字体.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        字体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="css/行高.html">
            
                
                    <a href="../css/行高.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        行高
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >Introduction</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <p><img src="../img/123.png" alt="&#x56FE;&#x7247;"></p>
<h1 id="welcome-to-use-my-xtnotebook">Welcome to use My XT-Notebook</h1>
<h2 id="table&#x8868;&#x683C;">table-&#x8868;&#x683C;</h2>
<h3 id="1&#x8868;&#x683C;&#x7684;&#x57FA;&#x672C;&#x5185;&#x5BB9;">1.&#x8868;&#x683C;&#x7684;&#x57FA;&#x672C;&#x5185;&#x5BB9;</h3>
<table>
<thead>
<tr>
<th style="text-align:center">&#x7C7B;</th>
<th style="text-align:center">&#x5C5E;&#x6027;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">table</td>
<td style="text-align:center">&#x6574;&#x4E2A;&#x8868;&#x683C;&#x7684;&#x5927;&#x76D2;&#x5B50;</td>
</tr>
<tr>
<td style="text-align:center">tr</td>
<td style="text-align:center">&#x8868;&#x793A;&#x8868;&#x683C;&#x7684;&#x884C;</td>
</tr>
<tr>
<td style="text-align:center">th</td>
<td style="text-align:center">&#x8868;&#x683C;&#x7684;&#x7B2C;&#x4E00;&#x884C;&#xFF0C;&#x5934;&#x90E8;&#x884C;</td>
</tr>
<tr>
<td style="text-align:center">td</td>
<td style="text-align:center">&#x666E;&#x901A;&#x5355;&#x5143;&#x683C;</td>
</tr>
</tbody>
</table>
<h3 id="2table&#x5B9E;&#x4F8B;">2.table&#x5B9E;&#x4F8B;</h3>
<pre><code>&lt;html&gt;
    &lt;head&gt;
        &lt;meta charset=&quot;UTF-8&quot;&gt;
        &lt;title&gt;table&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;!--
            table&#x8868;&#x683C;
                border            &#x8FB9;&#x6846;&#x5927;&#x5C0F;
                cellspacing        &#x5355;&#x5143;&#x683C;&#x4E4B;&#x95F4;&#x7684;&#x95F4;&#x8DDD; 
                cellpadding        &#x5355;&#x5143;&#x683C;&#x7684;&#x5185;&#x8FB9;&#x8DDD;

            tr    &#x884C;
            th    &#x8868;&#x5934;
            td    &#x666E;&#x901A;&#x5355;&#x5143;&#x683C;

            &#x5C5E;&#x6027;&#xFF1A;
                colspan&#xFF1A;&#x5355;&#x5143;&#x683C;&#x6240;&#x5360;&#x5217;&#x6570;&#xFF0C;&#x8BBE;&#x7F6E;&#x6570;&#x91CF;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;1&#xFF0C;&#x53EA;&#x80FD;&#x5F80;&#x53F3;&#x8D70;
                rowspan&#xFF1A;&#x5355;&#x5143;&#x683C;&#x6240;&#x5360;&#x884C;&#x6570;&#xFF0C;&#x8BBE;&#x7F6E;&#x6570;&#x91CF;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;1&#xFF0C;&#x53EA;&#x80FD;&#x5F80;&#x4E0B;&#x8D70;
        --&gt;
        &lt;table border=&quot;1&quot; cellspacing=&quot;5&quot; cellpadding=&quot;10&quot;&gt;
            &lt;tr&gt;
                &lt;th&gt;&#x5E8F;&#x53F7;&lt;/th&gt;
                &lt;th&gt;&#x6210;&#x5458;&lt;/th&gt;
                &lt;th&gt;&#x5E74;&#x9F84;&lt;/th&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;1&lt;/td&gt;
                &lt;td&gt;&#x674E;&#x56DB;&lt;/td&gt;
                &lt;td rowspan=&quot;2&quot;&gt;22&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;2&lt;/td&gt;
                &lt;td&gt;&#x5F20;&#x4E09;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;th&gt;&#x4EBA;&#x6570;&lt;/th&gt;
                &lt;td colspan=&quot;2&quot;&gt;2&lt;/td&gt;
            &lt;/tr&gt;
        &lt;/table&gt;


        &lt;table border=&quot;&quot; cellspacing=&quot;&quot; cellpadding=&quot;&quot;&gt;
        &lt;!-- 
            tbody &#x8868;&#x683C;&#x7684;&#x4E3B;&#x4F53;
            thead &#x9875;&#x7709;
                thead&#x59CB;&#x7EC8;&#x4F1A;&#x5728;table&#x7684;&#x6700;&#x4E0A;&#x65B9;&#x6E32;&#x67D3;
            tfoot &#x9875;&#x811A;
                tfoot&#x59CB;&#x7EC8;&#x4F1A;&#x5728;table&#x7684;&#x6700;&#x4E0B;&#x65B9;&#x6E32;&#x67D3;

            colgroup &#x4EE5;&#x5217;&#x4E3A;&#x5355;&#x4F4D;&#x63A7;&#x5236;&#x6837;&#x5F0F;
                col        &#x6BCF;&#x4E00;&#x5217;&#x4E3A;&#x5355;&#x4F4D;&#x63A7;&#x5236;&#xFF0C;&#x6539;&#x53D8;&#x5217;&#x7684;&#x8303;&#x56F4;&#x4F7F;&#x7528;span&#x5C5E;&#x6027;
         --&gt;

        &lt;tbody&gt;
            &lt;colgroup&gt;
                &lt;col /&gt;
                &lt;col style=&quot;background: orange;&quot;/&gt;
            &lt;/colgroup&gt;
            &lt;tr&gt;
                &lt;td&gt;0&lt;/td&gt;
                &lt;td&gt;&#x738B;&#x4E94;&lt;/td&gt;
                &lt;td&gt;18&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;1&lt;/td&gt;
                &lt;td&gt;&#x8D75;&#x516D;&lt;/td&gt;
                &lt;td&gt;18&lt;/td&gt;
            &lt;/tr&gt;
        &lt;/tbody&gt;
        &lt;thead&gt;
            &lt;tr&gt;
                &lt;th&gt;&#x5E8F;&#x53F7;&lt;/th&gt;
                &lt;th&gt;&#x6210;&#x5458;&lt;/th&gt;
                &lt;th&gt;&#x5E74;&#x9F84;&lt;/th&gt;
            &lt;/tr&gt;
        &lt;/thead&gt;
        &lt;tfoot&gt;
            &lt;tr&gt;
                &lt;th&gt;&#x603B;&#x4EBA;&#x6570;&lt;/th&gt;
                &lt;th&gt;2&lt;/th&gt;
                &lt;th&gt;&lt;/th&gt;
            &lt;/tr&gt;
        &lt;/tfoot&gt;
        &lt;/table&gt;

    &lt;/body&gt;
&lt;/html&gt;
</code></pre>
                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../html/img.html" class="navigation navigation-prev " aria-label="Previous page: img-标签"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../html/列表与表单.html" class="navigation navigation-next " aria-label="Next page: 列表与表单"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
